Smush\Core\Lazy_Load\Video_Embed\Youtube_Embed S

Total Complexity 39
Dependencies 5
Dependents 1
Total lines 241
Lines of code 152
Logical lines of code 78
Comment lines 30
Methods 16
Properties 7

Methods 16

Method Rating Maintainability Complexity Lines of code
determine_best_thumbnail_size()
A
49 11 31
fetch_video_thumbnail()
S
51 5 26
prepare_thumbnail_sizes()
S
54 2 21
prepare_video_id()
S
62 3 10
is_smaller_than_video()
S
77 3 3
is_thumbnail_available()
S
63 2 12
get_video_id()
S
72 2 6
get_thumbnail_sizes()
S
72 2 6
get_thumbnail_url()
S
64 2 10
__construct()
S
68 1 7
get_name()
S
81 1 3
get_embed_url()
S
82 1 3
can_lazy_load()
S
81 1 3
is_valid_embed_url()
S
76 1 4
is_aspect_ratio_match()
S
78 1 3
get_cached_video_thumbnail()
S
74 1 4